package com.example.demo.model.converter;

import com.example.demo.model.core.PageVo;
import com.example.demo.model.entity.SysDept;
import com.example.demo.model.form.DeptForm;
import com.example.demo.model.vo.DeptVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface SysDeptConverter {

    SysDept toEntity(DeptForm form);

    DeptForm toForm(SysDept entity);

    DeptVO toVo(SysDept value);

    PageVo<DeptVO> toPageVo(PageVo<SysDept> pageVo);

}
